#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import pandas as pd

def my_data_describe(df):
    df_len = len(df)
    df_temp = pd.DataFrame(df.describe(include='all')).loc[['count','max','min','std','mean']]
    for i in df.columns:
        df_temp.loc['unique_num',i] = len(df[i].unique())
        df_temp.loc['type',i] = str(df[i].dtypes)
        df_temp.loc['na_rate',i] = (df_len - df_temp[i]['count'])/df_len
    return df_temp.T

if __name__ == '__main__':
    pass
